package apoc.core.client.gui.hud;

import net.minecraft.client.gui.ScaledResolution;

public abstract class HUDComponent
{

    protected int x, y;

    public HUDComponent(int x, int y)
    {
        this.x = x;
        this.y = y;
    }

    public void setPos(int x, int y)
    {
        this.x = x;
        this.y = y;
    }

    public int getX()
    {
        return x;
    }

    public int getY()
    {
        return y;
    }

    public abstract void draw(int mouseX, int mouseY);

    public abstract void update(ScaledResolution resolution, int mouseX, int mouseY);

}
